/**
 * Display runner details from given username
 * @param args.username
 */
function main()
{
	var url = "/gwi/run/runnerDetails.json";
	var username = args.username;
	//TODO test username not empty
	if(username != null){
		url += "?username=" + username;
	}
	var result = remote.call(url);
	 
	if (result.status == 200 && result != "{}"){
		var runner = eval('(' + result + ')');
		model.runner = runner;
	}

}

main();